package com.tian.controller;

import com.tian.HelloService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class HelloController {


    @Resource
    private HelloService helloService;

    @RequestMapping("/dubbo")
    public String hello(){
        return helloService.hello();
    }
}
